package com.gcd.alienandwheel.stage;

import com.badlogic.gdx.scenes.scene2d.actors.Label;
import com.gcd.alienandwheel.MyGame;

/**
 * This is Credit Stage. Contain profile the creator.
 * @author Rezan Achmad
 */
public class Credit extends MyStage {

    Label titleLabel;
    Label contentLabel;
    
    public Credit(MyGame myGame, float width, float height, boolean stretch) {
        super(myGame, width, height, stretch);
        init();
    }

    private void init() {
        String titleString = "Credit";
        titleLabel = new Label("titleLabel", font, titleString);
        titleLabel.x = 40;
        titleLabel.y = height - 30;
        
        String contentString = "Rezan Achmad - Programmer\nSandy Socrates - Programmer\nIrwan Fathurahman - Desaigner";
        contentLabel = new Label("contentLabel", font, contentString);
        contentLabel.x = 0;
        contentLabel.y = centerY;
        
        addActor(titleLabel);
        addActor(contentLabel);
    }
}
